package com.cpecc.model.wuzi;

import java.io.Serializable;
import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

import org.hibernate.annotations.GenericGenerator;

@Entity
@Table(name = "DATA_WUZI_ZHEJIU")
public class ZheJiu implements Serializable{

	/**
	 * 
	 */
	private static final long serialVersionUID = -7119958049804894842L;

	@Id
	@GeneratedValue(generator = "system-uuid")
	@GenericGenerator(name = "system-uuid", strategy = "uuid")
	@Column(length = 32)
	private String id;
	
	@ManyToOne
	@JoinColumn(name="WUZI_ID")
	private WuZi wuZi;
	
	@ManyToOne
	@JoinColumn(name="FENTAN_ID")
	private FenTan fenTan;
	
	@Column
	private double zheJiuJE;
	
	@Column
	private Date zheJiuRQ;	

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public WuZi getWuZi() {
		return wuZi;
	}

	public void setWuZi(WuZi wuZi) {
		this.wuZi = wuZi;
	}

	public FenTan getFenTan() {
		return fenTan;
	}

	public void setFenTan(FenTan fenTan) {
		this.fenTan = fenTan;
	}

	public double getZheJiuJE() {
		return zheJiuJE;
	}

	public void setZheJiuJE(double zheJiuJE) {
		this.zheJiuJE = zheJiuJE;
	}

	public Date getZheJiuRQ() {
		return zheJiuRQ;
	}

	public void setZheJiuRQ(Date zheJiuRQ) {
		this.zheJiuRQ = zheJiuRQ;
	}

	public ZheJiu(String id, WuZi wuZi, FenTan fenTan, double zheJiuJE,
			Date zheJiuRQ) {
		super();
		this.id = id;
		this.wuZi = wuZi;
		this.fenTan = fenTan;
		this.zheJiuJE = zheJiuJE;
		this.zheJiuRQ = zheJiuRQ;
	}

	public ZheJiu() {
		super();
	}	
}
